<?php
class main extends spController
{
	function __construct(){ // 公用
		parent::__construct(); // 这是必须的
		$this->tpl_title = "主体模块|主题部分";
	}
	
	function index(){ // 页面管理
		$this->tpl_title = "页面管理";  
		
		$this->display("index/main_index.html");
	}

function do_translation($peram,$content,&$marty,&$repeat){ 
extract($peram);
if(!isset($order)){
$order = "cid DESC";
} 
if(!isset($row)){
$row=10;
} 
$this->results = $post->spPager($this->spArgs('page', 1), 20)->findAll(array("type" => 'post'),"cid DESC");   
return $results;

}
	
}	